/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jmail;

import jmail.window.JMainFrame;

/**
 *
 * @author iflamed
 */
public class Jmail {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        // TODO code application logic here
        Config.initialProps();
        if (false) {
            //SendMail htmlsender = new SendMail();
            //htmlsender.send("iflamed@126.com", "iflamed", "lb234216", "liubing55750456@mail.bnu.edu.cn", "test attach", "/PDF_112799174.pdf", "PDF_112799174.pdf");
            System.out.println("发送完成");
        } else {
            System.out.println("启动完成");
            JMainFrame.main(args);
            //ReceiveMail receiver = new ReceiveMail("mail.bnu.edu.cn", "liubing55750456", "lb234216");
            //test();
//            String fri = Config.getProps("jmail.dir")+"0810210033.xml";
//            Endir ed = new Endir(fri);
//            ed.createFile("刘兵", "0810210033");
//            Students ss = new Students();
//            ss.addStudent("刘兵", "0810210033", "0", "1", "/attach");
//            XmlData xd = new XmlData(fri);
//            TreeMap tm = new TreeMap();
//            tm.put("file1", "file1.pdf");
//            tm.put("234", "234.pdf");
//            tm.put("adf","adf.pdf");
//            xd.insertXml("作业14", 20, tm);
//            xd.insertXml("作业15", 10, tm);
            //xd.updateScore("作业14","30");
            //xd.updateScore("作业15","30");
            //ed.writeFile("我们都是好人！");
            //ed.createXml("刘兵", "0810210033");;
        }
    }

    /**
     * 测试接收126邮箱邮件
     */
    public static void test() {
        String host = "mail.bnu.edu.cn";
        String username = "liubing55750456";
        String password = "lb234216";

        //ReceiveEmail receiveEmail = new ReceiveEmail("pop3.126.com","pop3","iflamed","lb234216","110","inbox");
    }
}
